import time,os
time1=time.time()
# def showpyfile(path):
#     print(f'path={path}')
#     list1 = os.listdir(path)
#
#     for file in list1:
#         filepath = path + '\\' + file
#         if os.path.isfile(filepath):
#             if filepath.endswith('.py'):
#                 print(f'文件:{filepath}')
#         else:
#             showpyfile(filepath)
#
# showpyfile(r'D:\APPS\PyCharm\PythonProject\Task')
# time.sleep(2)
# time2=time.time()
# time3=time2-time1
#
# print(time.localtime())
# print(time3)
timestr=time.strftime('%Y/%m/%d %H:%M:%S')
print(timestr)

# import datetime
from datetime import datetime,timedelta

print(datetime.now())
d=datetime(2000,2,29,12,34,23)
print(d)
print(d.strftime('%Y年%m月%d日'))

print(d+timedelta(days=1))
print(d-timedelta(days=30))
print(d-timedelta(weeks=30))


